<html>
<script>
/*
var href = "https://dewdfgwd01082.wdf.sap.corp:4080/sap/opu/odata/sap/CRM_OPPORTUNITY/?q=jerry#123";
var match = href.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);*/

var href = "http://localhost:8080/proxy/https/qxl-cust233.dev.sapbydesign.com/sap/ap/ui/repository/~20170810020520.0084910~/BYD_COD/Runtime/HTML/resources/sap/client/cod/newui/shared/view/survey/main.view.xml";

var href1 = "http://localhost:8080/proxy/https/qxl-cust233.dev.sapbydesign.com//sap/public/ping";
var match = href.match(/^.*proxy\/(http|https)\/([^_]*)\/sap\/ap\/ui\/repository(\/.+){1}\/BYD_COD\/Runtime\/HTML(\/resources\/.*)$/);

debugger;

function containsRepeatingLetter(str) {
    return /([a-zA-Z])\1/.test(str);
}

var ex = /([a-zA-Z])\1/;

var result = "HelloWorld".match(ex);

debugger;


console.log(containsRepeatingLetter("HelloWorld"));
</script>
</html>
